import React from 'react';
import { IdSelect } from '@src/components/id-select';
import { useTaskTypes } from '@src/utils/task-type';

export const TaskTypeSelect = (props: React.ComponentProps<typeof IdSelect>) => {
  const { data: taskTypes } = useTaskTypes();
  return <IdSelect options={taskTypes || []} {...props} />;
};
